Williams' Highs and Lows

Category: Indicators By: gabri Created: November 16, 2017, 4:11 PM
November 16, 2017, 4:11 PM
Indicators
93 Comments

This code draws arrows to highlight Short Swing points and circles to highlight Intermediate Swing Points.

Whoever knows the book “Long-term secrets to short-term trading” will know how to use these points.

Blue skies!!

//computation of the radius to draw ellipses
radius=average[200](range)/4

//formula to compute short term swing points
if (high>alto[1]) and not (high<high[1] and low>low[1]) then
 alto=high
 basso=low
 markup=barindex
 markhigh=high
endif
if (low<basso[1]) and not (high<high[1] and low>low[1]) then
 alto=high
 basso=low
 markdown=barindex
 marklow=low
endif

if alto<alto[1] and trend=1 then
 trend=0
 drawarrowdown(markup,markhigh)
 mediummarkup=shortmarkup
 shortmarkup=markup
 longmarkhigh=mediummarkhigh
 mediummarkhigh=shortmarkhigh
 shortmarkhigh=markhigh
 //intermediate high swing points
 if longmarkhigh<mediummarkhigh and mediummarkhigh>shortmarkhigh then
  DRAWELLIPSE(mediummarkup-1, mediummarkhigh-radius, mediummarkup+1, mediummarkhigh+radius)
 endif
endif

if basso>basso[1] and trend=0 then
 trend=1
 drawarrowup(markdown,marklow)
 mediummarkdown=shortmarkdown
 shortmarkdown=markdown
 longmarklow=mediummarklow
 mediummarklow=shortmarklow
 shortmarklow=marklow
 //intermediate low swing points
 if longmarklow>mediummarklow and mediummarklow<shortmarklow then
  DRAWELLIPSE(mediummarkdown-1, mediummarklow-radius, mediummarkdown+1, mediummarklow+radius)
 endif
endif


drawcandle(open,high,low,close)
return

Download
Filename: PRT-williams-high-and-low.itf
Downloads: 908
gabri Master
This author is like an anonymous function, present but not directly identifiable. More details on this code architect as soon as they exit 'incognito' mode.
Author’s Profile

Comments

Logo Logo
Loading...